﻿using Data.Enum;

namespace Data.Common
{
    /// <summary>
    ///     封装的返回信息
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ResultInfo<T>
    {
        /// <summary>
        ///     返回状态编码
        /// </summary>
        public ResultEnum ResultNumber { get; set; }

        /// <summary>
        ///     返回描述
        /// </summary>
        public string Describe { get; set; }

        /// <summary>
        ///     返回值
        /// </summary>
        public T Obj { get; set; }
    }

    public class ResultInfo<T1,T2>
    {
        /// <summary>
        ///     返回状态编码
        /// </summary>
        public ResultEnum ResultNumber { get; set; }

        /// <summary>
        ///     返回描述
        /// </summary>
        public string Describe { get; set; }

        /// <summary>
        ///     返回值
        /// </summary>
        public T1 Obj1 { get; set; }

        /// <summary>
        /// 返回值
        /// </summary>
        public T2 Obj2 { get; set; }
    }
}